<!doctype html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>添加分类</title>

    <!-- css -->
    <link rel="stylesheet" href="../../static/layui-v2.5.4/layui/css/layui.css" th:href="@{/layui-v2.5.4/layui/css/layui.css}">
    <script src="../../static/jQuery/jquery-2.2.3.min.js" th:src="@{/jQuery/jquery-2.2.3.min.js}"></script>
    <script src="../../static/blog/js/message.js" th:src="@{/blog/js/message.js}"></script>

    <!-- js -->
    <script src="../../static/layui-v2.5.4/layui/layui.js" th:src="@{/layui-v2.5.4/layui/layui.js}"></script>

</head>
<body>
<div class="layui-container">
    <form class="layui-form" action="/v1/admin/category" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">分类名</label>
            <div class="layui-input-inline">
                <input type="text" hidden="hidden" required name="parentId" id="parentId">
                <input type="text" name="categoryName" required  lay-verify="required" placeholder="分类名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">分类描述</label>
            <div class="layui-input-inline">
                <input type="text" name="description" required lay-verify="required" placeholder="请输入分类描述" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="categoryForm">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>